<table>
  <tr>
    <th width="15%" align="left"><%= get_sort_link "Event", "event_id" %></th>
    <th width="15%" align="left"><%= get_sort_link "Minutes", "minSpent" %></th>
    <th width="40%" align="left"><%= get_sort_link "Description", "description" %></th>
    <th width="20%" align="left"><%= get_sort_link "Created At", "created_at" %></th>
  </tr>

<% for trace in @traces %>
  <tr>
    <td><%= link_to trace.event.title, {:id => trace.event.id, :controller=> :events, :action => :show} %></td>
    <td><%=h trace.minSpent %></td>
    <td><%=h trace.description %></td>    
    <td><%= h trace.created_at.strftime("%m/%d/%Y") %></td>
    <td width="10%"><%= link_to image_tag( "info.png", :border => 0 ), trace %> <%= link_to image_tag( "edit.png", :border => 0 ), edit_trace_path(trace) %> <%= link_to image_tag( "trash.png", :border => 0 ), trace, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>
